import sys

def eSum( n=11):
    for k in range(0,n,1):
	sum = 0
	k = k + 1
	for i in range(0,k,1):
	    sum = sum + 17**i
	print k, sum*18

if __name__=="__main__":
    if len(sys.argv) == 2:
        eSum(int(sys.argv[1]))
    else:
        eSum(25)
